package com.ezjie.ielts.task;

import java.util.HashMap;
import java.util.Map;

import android.content.Context;

import com.ezjie.ielts.core.http.HttpAPI;
import com.ezjie.ielts.core.http.HttpRequestCallBack;
import com.ezjie.ielts.core.http.ServerInterfaceDefinition;

public class CheckUpdateTask {

	private Context context;

	public CheckUpdateTask(Context context) {
		this.context = context;
	}

	/**
	 * 检查更新
	 * 
	 * @param httpRequestCallBack
	 */
	public void checkUpdate(HttpRequestCallBack httpRequestCallBack) {
		Map<String, String> params = new HashMap<String, String>();
		HttpAPI.getInstance(context).doGetRequest(ServerInterfaceDefinition.CHECK_UPDATE, params, httpRequestCallBack);
	}
}
